<?php /*
<div id="table_wrapper">
	<div id="table_container">
	<p>
	<?php if($this->table_container!=null){ $dim = count($this->table_container)+2;?>
	<table id="TABELLA" width="200" height="50" border="1" align="center">
	<tr>
    <?php 
     for ($j=0; $j<=$dim; $j++){?>
       <td><?php echo $this->table_container->getTitleAndUnit($j);?></td>
   
   <?php } ?>
   </tr>
   <?php
     for ($i=0; $i<12; $i++){ ?>
     	<tr>
      <?php	for($n=0; $n<=$dim; $n++){ ?>
      <td><?php echo $this->table_container->getValues($n, $i)?></td>
      <?php }?>
      </tr>
	<?php } ?>
   </table>	
   <?php }?>
    </div>
</div>	
*/?>

<div id=table_wrapper">
	<div id="report" >
		<?php 
		if($this->report!=null){ 
			for ($i=0; $i<$this->report->getNTable(); $i++){
				echo "<h2>"; echo $this->report->getTitleTable($i); echo "</h2>";?>
				<table id="tabella" border="1" cellpadding="4" cellspacing="0" align="center">
		    	<?php $j=0; 
		    	while ($j<$this->report->getValues($i)->length){?>
		    		<tr>
		    	 	<?php $n=0; 
		    	 	while ($n<$this->report->getNColums($i)){?>
		    			<td> <?php echo $this->report->getValues($i)->item($j)->nodeValue;?></td>
		    			<?php 
		    			$j++; 
		    			$n++;?>
		    		<?php }?>
					</tr>	
				<?php }?>
				</table>
		<?php }}?>
	</div>
</div>